<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>充值申请</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">充值申请</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper">
    <form method="post" id="wx_pay_submit" action="{:U('WxJsAPI/wx_recharge_record')}">
        <input id="applyTopup" type="hidden" value="{:U('Finance/applyTopup')}"/>
        <input id="doSubmitApplyTopup" type="hidden" value="{:U('Finance/index')}"/>
        <input type="hidden" id="account_state" value="{$userList.account_state}">
        <input type="hidden" id="code" name="applyTopUp_code" value="{$Think.session.applyTopUp}">
        <input type="hidden" id="admin_id" name="userList_id" value="{$userList.id}">
        <input type="hidden"  name="userList_id" value="{$userList.name}">
        <input type="hidden"  name="userList_id" value="{$userList.operator_id}">
        <input type="hidden"  name="userList_id" value="{$userList.account}">
        <div class="module charge">
            <div class="act clearfix">
                <a id="line_recharge" class="current pull-left i-1">线下充值</a>
                <a id="on_line_recharge" class="pull-right i-2">在线充值</a>
            </div>
            <!--线下支付区-->
            <div id="line_recharge_area">
                    <div class="radio">
                        <label>
                            <input type="radio" name="topup_type" data-num="1" value="1" checked class="bankTransfer">
                            现金充值
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" name="topup_type" data-num="2" value="2" class="bankTransfer">
                            刷卡充值
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" name="topup_type" data-num="3" value="3" class="bankTransfer">
                            支票充值
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" name="topup_type" value="4" data-num="4" class="bankTransfer">
                            银行转账
                        </label>
                    </div>
                    <div class="bankInfo" style="display:none;">
                        <pre>{$topupInfo}</pre>
                    </div>

                    <if condition="$alipayState eq 0">
                    <div class="radio">
                        <label>
                            <input type="radio" name="topup_type" value="5" data-num="5" class="bankTransfer">
                            支付宝转账
                        </label>
                    </div>
                    </if>
               
                    <div class="alipayInfo" style="display:none;">
                        <pre>{$alipayInfo}</pre>
                    </div>

                    <div class="form-group remitter" style="display: none">
                        <label class="t">汇款方</label>
                        <input type="text" class="form-control remitterName" placeholder="汇款方名称"/>
                    </div>
                    <div class="form-group">
                           <label class="t">充值金额</label>
                           <input type="number" class="form-control amount" name="amount"/>
                   </div>
                   <input type="button" id="doCommitApplyTopUp" class="btn btn-primary btn-lg btn-block proofAgain"
                          value="提交申请"/>
            </div>
               <!--线上支付区-->
             
            <div id="on_line_recharge_area" style="display:none;">
                   <div class="radio">
                        <label>
                            <input type="radio" name="on_topup_type" data-num="6" value="6" checked class="bankTransfer">
                            微信支付
                        </label>
                    </div>
                 <div class="form-group">
                           <label class="t">充值金额</label>
                           <input type="number" class="form-control amount" name="amount" id="wx_pay_submit"/>
                   </div>
                   <input type="button" id="no_weixin_pay" class="btn btn-primary btn-lg btn-block proofAgain"
                          value="提交充值"/>
            </div>
           
        </div>
    </form>
    <!-- 删除警告提示-->
    <div class="modal fade popWin bs-example-modal-sm" id="myModalDel" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="warn"></i>请填写1元以上的充值金额</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning doSubmit" data-dismiss="modal" aria-label="Close">确认</button>
                    <button type="button" class="btn btn-default doCancel" data-dismiss="modal" aria-label="Close">取消</button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalSuc" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i>申请成功</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning doSubmit" data-dismiss="modal" aria-label="Close">确认
                    </button>
                    <button type="button" class="btn btn-default doCancel" data-dismiss="modal" aria-label="Close">取消</button>
                </div>
            </div>
        </div>
    </div>
    <footer class="footer">
        <include file="Template/foot"/>
    </footer>
</div>
</body>
</html>
